package com.lcxw.hxzbapi.service;

import com.lcxw.hxzbapi.dao.mapper.RobotMapper;
import com.lcxw.hxzbapi.entity.pojo.Robot;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class RobotService {

    @Resource
    RobotMapper robotMapper;

    public int deleteByPrimaryKey(Integer id){
        return robotMapper.deleteByPrimaryKey(id);
    }

    public int insert(Robot robot){
        return robotMapper.insert(robot);
    }

    public Robot selectByPrimaryKey(Integer id){
        return robotMapper.selectByPrimaryKey(id);
    }

    public List<Robot> selectAll(){
        return robotMapper.selectAll();
    }

    public int updateByPrimaryKey(Robot robot){
        return robotMapper.updateByPrimaryKey(robot);
    }

}
